package vista;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.WindowListener;

import javax.swing.JButton;

import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VMenu extends javax.swing.JFrame {
	private JPanel panel;
	private JMenu jMenu3;
	private JMenuItem GtPosiciones;
	private JMenuItem Gcalen;
	private JMenuItem Gc;
	private JMenuItem jmirc;
	private JMenuItem jmire;
	private JMenuItem jmirj;
	private JLabel jLabel_IL;
	private JMenu jMenu1;
	private JMenu jMenu2;
	private JMenuBar jMenuBar1;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public VMenu() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Bienvenido");
			{
				panel = new JPanel();
				getContentPane().add(panel, BorderLayout.CENTER);
				panel.setLayout(null);
				JPanel p1=new JPanel();
				p1.setBackground(new Color(120,130,255));
				this.add(p1, BorderLayout.NORTH);
				{
					jLabel_IL = new JLabel("Juegos Panamericanos");
					p1.add(jLabel_IL);
					jLabel_IL.setText("Juegos Panamericanos");
					jLabel_IL.setFont(new java.awt.Font("OCR A Extended",1,12));
				}

				JPanel p2 = new JPanel();
				getContentPane().add(p2, BorderLayout.CENTER);
				p2.setBackground(Color.WHITE);
			}
			{
				jMenuBar1 = new JMenuBar();
				setJMenuBar(jMenuBar1);
				{
					jMenu1 = new JMenu();
					jMenuBar1.add(jMenu1);
					jMenu1.setText("Menu");
					jMenu1.setFont(new java.awt.Font("OCR A Extended",1,10));
					{
						jmirj = new JMenuItem();
						jMenu1.add(jmirj);
						jmirj.setText("Registrar  Juez");
						jmirj.setFont(new java.awt.Font("OCR A Extended",1,10));
					}
					{
						jmire = new JMenuItem();
						jMenu1.add(jmire);
						jmire.setText("Registrar Equipo");
						jmire.setFont(new java.awt.Font("OCR A Extended",1,10));
					}
					{
						jmirc = new JMenuItem();
						jMenu1.add(jmirc);
						jmirc.setText("Registrar Competencia");
						jmirc.setFont(new java.awt.Font("OCR A Extended",1,10));
					}
				}
				{
					jMenu2 = new JMenu();
					jMenuBar1.add(jMenu2);
					jMenu2.setText("  Generar");
					jMenu2.setFont(new java.awt.Font("OCR A Extended",1,10));
					{
						Gc = new JMenuItem();
						jMenu2.add(Gc);
						Gc.setText("Competencia");
						Gc.setFont(new java.awt.Font("OCR A Extended",1,10));
					}
					{
						Gcalen = new JMenuItem();
						jMenu2.add(Gcalen);
						Gcalen.setText("Calendario");
						Gcalen.setFont(new java.awt.Font("OCR A Extended",1,10));
					}
					{
						GtPosiciones = new JMenuItem();
						jMenu2.add(GtPosiciones);
						GtPosiciones.setText("Tabla de posiciones");
						GtPosiciones.setFont(new java.awt.Font("OCR A Extended",1,10));
					}
				}
				{
					jMenu3 = new JMenu();
					jMenuBar1.add(jMenu3);
					jMenu3.setText("Salir");
					jMenu3.setFont(new java.awt.Font("OCR A Extended",1,10));
				}
			}
			pack();
			this.setSize(500, 377);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public void addListener(ActionListener actionlistener){
		
		jmirc.addActionListener(actionlistener);
		jmire.addActionListener(actionlistener);
		jmirj.addActionListener(actionlistener);
		Gc.addActionListener(actionlistener);
		Gcalen.addActionListener(actionlistener);
		GtPosiciones.addActionListener(actionlistener);

	}
	
	
	public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VMenu().setVisible(true);
            }
        });
    }
}
